package clue.cards;

import clue.enums.Suspect;

/**
 *
 * @author Shawn
 */
public class SuspectCard extends Card {
  private final Suspect suspect;

  public SuspectCard(Suspect name) {
    this.suspect = name;
  }

  public Suspect getSuspect() {
    return suspect;
  }

  @Override
  public int hashCode() {
    int hash = 7;
    hash = 71 * hash + (this.suspect != null ? this.suspect.hashCode() : 0);
    return hash;
  }

  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof SuspectCard))
      return false;

    SuspectCard o = (SuspectCard) obj;
    return this.suspect == o.suspect;
  }

  @Override
  public String toString() {
    return this.suspect.toString();
  }
}
